﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008A9 RID: 2217
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class Goods : IMessage<Goods>, IMessage, IEquatable<Goods>, IDeepCloneable<Goods>, IBufferMessage
	{
		// Token: 0x17001BE0 RID: 7136
		// (get) Token: 0x0600630B RID: 25355 RVA: 0x00106BF1 File Offset: 0x00104DF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<Goods> Parser
		{
			get
			{
				return Goods._parser;
			}
		}

		// Token: 0x17001BE1 RID: 7137
		// (get) Token: 0x0600630C RID: 25356 RVA: 0x00106BF8 File Offset: 0x00104DF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GoodsReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001BE2 RID: 7138
		// (get) Token: 0x0600630D RID: 25357 RVA: 0x00106C0A File Offset: 0x00104E0A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return Goods.Descriptor;
			}
		}

		// Token: 0x0600630E RID: 25358 RVA: 0x00106C11 File Offset: 0x00104E11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Goods()
		{
		}

		// Token: 0x0600630F RID: 25359 RVA: 0x00106C1C File Offset: 0x00104E1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Goods(Goods other) : this()
		{
			this.beginTime_ = other.beginTime_;
			this.goodsId_ = other.goodsId_;
			this.buyTimes_ = other.buyTimes_;
			this.itemId_ = other.itemId_;
			this.endTime_ = other.endTime_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006310 RID: 25360 RVA: 0x00106C7C File Offset: 0x00104E7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Goods Clone()
		{
			return new Goods(this);
		}

		// Token: 0x17001BE3 RID: 7139
		// (get) Token: 0x06006311 RID: 25361 RVA: 0x00106C84 File Offset: 0x00104E84
		// (set) Token: 0x06006312 RID: 25362 RVA: 0x00106C8C File Offset: 0x00104E8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long BeginTime
		{
			get
			{
				return this.beginTime_;
			}
			set
			{
				this.beginTime_ = value;
			}
		}

		// Token: 0x17001BE4 RID: 7140
		// (get) Token: 0x06006313 RID: 25363 RVA: 0x00106C95 File Offset: 0x00104E95
		// (set) Token: 0x06006314 RID: 25364 RVA: 0x00106C9D File Offset: 0x00104E9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GoodsId
		{
			get
			{
				return this.goodsId_;
			}
			set
			{
				this.goodsId_ = value;
			}
		}

		// Token: 0x17001BE5 RID: 7141
		// (get) Token: 0x06006315 RID: 25365 RVA: 0x00106CA6 File Offset: 0x00104EA6
		// (set) Token: 0x06006316 RID: 25366 RVA: 0x00106CAE File Offset: 0x00104EAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuyTimes
		{
			get
			{
				return this.buyTimes_;
			}
			set
			{
				this.buyTimes_ = value;
			}
		}

		// Token: 0x17001BE6 RID: 7142
		// (get) Token: 0x06006317 RID: 25367 RVA: 0x00106CB7 File Offset: 0x00104EB7
		// (set) Token: 0x06006318 RID: 25368 RVA: 0x00106CBF File Offset: 0x00104EBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x17001BE7 RID: 7143
		// (get) Token: 0x06006319 RID: 25369 RVA: 0x00106CC8 File Offset: 0x00104EC8
		// (set) Token: 0x0600631A RID: 25370 RVA: 0x00106CD0 File Offset: 0x00104ED0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long EndTime
		{
			get
			{
				return this.endTime_;
			}
			set
			{
				this.endTime_ = value;
			}
		}

		// Token: 0x0600631B RID: 25371 RVA: 0x00106CD9 File Offset: 0x00104ED9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as Goods);
		}

		// Token: 0x0600631C RID: 25372 RVA: 0x00106CE8 File Offset: 0x00104EE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(Goods other)
		{
			return other != null && (other == this || (this.BeginTime == other.BeginTime && this.GoodsId == other.GoodsId && this.BuyTimes == other.BuyTimes && this.ItemId == other.ItemId && this.EndTime == other.EndTime && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600631D RID: 25373 RVA: 0x00106D64 File Offset: 0x00104F64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BeginTime != 0L)
			{
				num ^= this.BeginTime.GetHashCode();
			}
			if (this.GoodsId != 0U)
			{
				num ^= this.GoodsId.GetHashCode();
			}
			if (this.BuyTimes != 0U)
			{
				num ^= this.BuyTimes.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.EndTime != 0L)
			{
				num ^= this.EndTime.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600631E RID: 25374 RVA: 0x00106E07 File Offset: 0x00105007
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600631F RID: 25375 RVA: 0x00106E0F File Offset: 0x0010500F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006320 RID: 25376 RVA: 0x00106E18 File Offset: 0x00105018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BeginTime != 0L)
			{
				output.WriteRawTag(16);
				output.WriteInt64(this.BeginTime);
			}
			if (this.GoodsId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.GoodsId);
			}
			if (this.BuyTimes != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.BuyTimes);
			}
			if (this.EndTime != 0L)
			{
				output.WriteRawTag(104);
				output.WriteInt64(this.EndTime);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006321 RID: 25377 RVA: 0x00106EC8 File Offset: 0x001050C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BeginTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.BeginTime);
			}
			if (this.GoodsId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GoodsId);
			}
			if (this.BuyTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuyTimes);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.EndTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.EndTime);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006322 RID: 25378 RVA: 0x00106F68 File Offset: 0x00105168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(Goods other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BeginTime != 0L)
			{
				this.BeginTime = other.BeginTime;
			}
			if (other.GoodsId != 0U)
			{
				this.GoodsId = other.GoodsId;
			}
			if (other.BuyTimes != 0U)
			{
				this.BuyTimes = other.BuyTimes;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.EndTime != 0L)
			{
				this.EndTime = other.EndTime;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006323 RID: 25379 RVA: 0x00106FF4 File Offset: 0x001051F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006324 RID: 25380 RVA: 0x00107000 File Offset: 0x00105200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 16U)
					{
						this.BeginTime = input.ReadInt64();
						continue;
					}
					if (num == 24U)
					{
						this.GoodsId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.BuyTimes = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.EndTime = input.ReadInt64();
						continue;
					}
					if (num == 112U)
					{
						this.ItemId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040025D1 RID: 9681
		private static readonly MessageParser<Goods> _parser = new MessageParser<Goods>(() => new Goods());

		// Token: 0x040025D2 RID: 9682
		private UnknownFieldSet _unknownFields;

		// Token: 0x040025D3 RID: 9683
		public const int BeginTimeFieldNumber = 2;

		// Token: 0x040025D4 RID: 9684
		private long beginTime_;

		// Token: 0x040025D5 RID: 9685
		public const int GoodsIdFieldNumber = 3;

		// Token: 0x040025D6 RID: 9686
		private uint goodsId_;

		// Token: 0x040025D7 RID: 9687
		public const int BuyTimesFieldNumber = 11;

		// Token: 0x040025D8 RID: 9688
		private uint buyTimes_;

		// Token: 0x040025D9 RID: 9689
		public const int ItemIdFieldNumber = 14;

		// Token: 0x040025DA RID: 9690
		private uint itemId_;

		// Token: 0x040025DB RID: 9691
		public const int EndTimeFieldNumber = 13;

		// Token: 0x040025DC RID: 9692
		private long endTime_;
	}
}
